﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace WpfRedis.Models
{
    public class IconButtonModel
    {
        //private Geometry _Icon;


        //public Geometry Icon
        //{
        //    get
        //    {
        //        return _Icon;
        //    }
        //    set
        //    {
        //        _Icon = value;
        //        RaisePropertyChanged(nameof(Icon));
        //    }
        //}
        public IconButtonModel()
        {
            this.Icon = "M290.16 784h443.68v44H290.16zM651.5 261h-279a30 30 0 0 0 0 60h279a30 30 0 0 0 0-60zM651.5 356h-279a30 30 0 0 0 0 60h279a30 30 0 0 0 0-60zM863.5 461.72H764V246a88.1 88.1 0 0 0-88-88H348a88.1 88.1 0 0 0-88 88v215.72h-99.5c-37.67 0-68.5 33.14-68.5 73.65v257c0 40.49 30.83 73.63 68.5 73.63h93.12v-65.05c0-19.81 19.67-36 43.72-36h429.32c24 0 43.72 16.21 43.72 36V866h93.12c37.67 0 68.5-33.14 68.5-73.65v-257c0-40.49-30.83-73.63-68.5-73.63zM320 246a28 28 0 0 1 28-28h328a28 28 0 0 1 28 28v215.72H320z m517.5 404a38.5 38.5 0 1 1 38.5-38.5 38.5 38.5 0 0 1-38.5 38.5z";
            this.Title = "按钮";
        }
        public string Icon { get; set; }
        public string Title { get; set; }
    }

    public class HomeButtonModel : ObservableCollection<IconButtonModel>
    {
       
        public HomeButtonModel()
        {
            Add( new IconButtonModel() {Icon= "M365.216 466.464l339.976 339.968-45.256 45.256-339.976-339.976z", Title="1111" });
            Add(new IconButtonModel() { Icon = "M761.6 489.6l-432-435.2c-9.6-9.6-25.6-9.6-35.2 0-9.6 9.6-9.6 25.6 0 35.2l416 416-416 425.6c-9.6 9.6-9.6 25.6 0 35.2s25.6 9.6 35.2 0l432-441.6C771.2 515.2 771.2 499.2 761.6 489.6z", Title = "22" });
        }

    }
}
